package com.gift.recommendation.Base;

import lombok.Data;

import java.text.MessageFormat;

/**
 * @author zzh <2658137258@qq.com>
 * @date 2023/2/17
 */
@Data
public class MyException extends RuntimeException{

    private String errorCode;
    private String errorMsg;

    public MyException() {
    }

    public MyException(String errorMsg) {
        this("404", errorMsg);
    }

    public MyException(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }



}
